package com.yneusoft.manage.model.param;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * create by fzg
 * 2021/10/23 17:29
 */

@Data
public class DemageBookParam {

    /**
     * 图书aid
     */
    @NotNull(message = "图书aid不能为空")
    private Integer aid;

    /**
     * 损坏数量
     */
    @NotNull(message = "损坏数量不能为空")
    @Min(value = 1,message = "损坏数量最小为1")
    private Integer demageQuantity;

    /**
     * 备注
     */
    @Length(max=100,message = "备注信息最长为100个字符")
    private String remarks;

}
